package cn.zhanghu;

/**
 * Created by dell on 2017/7/18.
 */
 class Student {
    private  String name;
    private  String gender;
    private  String address;
    private  String email;
    private int age;
    private String phone;
    public void setAge(int age){
        this.age=age;
    }

    public int getAge() {
        return age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public Student(){}
    public Student(String name,String gender,String address,String email,int age,String phone){
        this.name = name;
        this.gender = gender;
        this.address = address;
        this.email = email;
        this.age = age;
        this.phone = phone;
    }
    public void eat(String food){
        System.out.println(name+" will eat "+food);
    }
    public  void drink(String drink){
        System.out.println("i'll drink "+drink);

    }
}
public class Debug{
    public static void main(String[] args) {
    //Student student=new Student();
    Student student1=new Student("micky","男","月球","2343242@316.com",5,"3243242343");
    student1.drink("water");
    student1.eat("pig");
    student1.setAddress("宇宙");
    System.out.println(student1.getAddress());
    }
}
